package chapter12;

/**
 * @author : DuJiabao
 * @Date : 2021/2/20 21:39
 * @Project : thinking-in-java
 * @File : null.java
 * @Desc :
 */
public class Human {
  public static void main(String[] args) {
    try {
      throw new Sneeze();
    } catch (Sneeze sneeze) {
      sneeze.printStackTrace();
    } catch (Annoyance annoyance) {   // 无法到达
      annoyance.printStackTrace();
    }

    try {
      throw new Sneeze();
    } catch (Annoyance annoyance) {
      annoyance.printStackTrace();
    }

  }
}

class Annoyance extends Exception {
}

class Sneeze extends Annoyance {
}

